<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="renderer" content="webkit" />
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<meta name="App-Config" content="fullscreen=yes,useHistoryState=yes,transition=yes" />
		<meta content="yes" name="apple-mobile-web-app-capable" />
		<meta content="yes" name="apple-touch-fullscreen" />
		<meta content="telephone=no,email=no" name=format-detection />
		<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>明细记录</title>
		<link href="../c/details.css" rel="stylesheet" />
	</head>
	<body>
		<div class="details">
			<div class="details_list">
				<p class="details_p">提现数额: 23650.52</p>
				<p class="status"><span>审核中</span><span>余额退回</span></p>
				<p class="details_p">手续费: 100.00</p>
				<p class="details_p">直播消费金: 888</p>
				<p class="details_p">培训食宿费: 888</p>
				<p class="details_p">礼物打赏金: 888</p>
				<p class="details_p">到账数额: 23550.52</p>

				<p class="time">提现申请日期:2020-11-20 15:21:52</p>
				<p class="time">提现处理日期:2020-11-21 19:21:52</p>
				<p class="bz">
					提现失败原因:银行卡户主姓名与卡号不相符,请重新提交。
				</p>
			</div>
		</div>
	</body>
</html>
<script src="../j/api.js"></script>
<script src="../j/jquery-3.3.1.min.js"></script>
<script>
	// return
	apiready = function() {
		urls();
		_ajax('member/yubi_tixian_list', function(ret, err) {
			console.log(JSON.stringify(ret));
			if (ret.ret) {
				if (ret.ret.length > 0 && ret.ret != "") {
					var str = '';
					for (var i = 0; i < ret.ret.length; i++) {
						str += '<div class="details_list">';
						str += '<p class="details_p">提现数额:' + (ret.ret[i].money) / 100 + '元</p>';
						str += '<p class="status"><span>';
						if (ret.ret[i].hide == 1) {
							str += '已通过</span>';
						} else if (ret.ret[i].hide == 2) {
							str += '审核中</span>';
						} else {
							str += '未通过</span><span>余额退回</span>';
						}
						str += '</p>';
						var nums =ret.ret[i].charge- ret.ret[i].charge_live - ret.ret[i].charge_liwu;
						str += '<p class="details_p">手续费: ' + (nums/100) + '元</p>';
						str += '<p class="details_p">直播消费金:' + (ret.ret[i].charge_live) / 100 + '元</p>';
						if(ret.ret[i].fee!="" && ret.ret[i].fee!=null){
							str += '<p class="details_p">培训食宿费:' + (ret.ret[i].fee) / 100 + '元</p>';
						}else{
							
						}
						str += '<p class="details_p">礼物打赏金: ' + (ret.ret[i].charge_liwu) / 100 + '元</p>';
						str += '<p class="details_p">到账数额: ' + (ret.ret[i].get_price) / 100 + '元</p>';
						str += '<p class="time">提现申请日期:' + ret.ret[i].time + '</p>';
						if (ret.ret[i].updated_at == null || ret.ret[i].updated_at == "null") {} else {
							str += '<p class="time">提现处理日期:' + ret.ret[i].updated_at + '</p>';
						}
						if (ret.ret[i].content == null || ret.ret[i].content == "null") {
							str += '<p class="bz"></p>';
						} else {
							if(ret.ret[i].hide==1 || ret.ret[i].hide=="1"){
								console.log('不走这里的吗1？');
							}else{
								str += '<p class="bz">退回原因:' + ret.ret[i].content + '</p>';
							}

						}
						str += '</div>';
					}
					$(".details").html(str);
				} else {
					$(".details").html("<p style='color:#fff;text-align: center;margin-top:1rem;'>暂无数据！</p>");
				}
			} else {
				$(".details").html("<p style='color:#fff;text-align: center;margin-top:1rem;'>暂无数据！</p>");

			}

		})
		api.addEventListener({
			name: 'scrolltobottom',
			extra: {
				threshold: 150 //设置距离底部多少距离时触发，默认值为0，数字类型
			}
		}, function(ret, err) {
			_msg("加载中!请等待");
			_ajax('member/yubi_tixian_list', function(ret, err) {
				if (ret.ret) {
					if (ret.ret.length > 0 && ret.ret != "") {
						var str = '';
						for (var i = 0; i < ret.ret.length; i++) {
							str += '<div class="details_list">';
							str += '<p class="details_p">提现数额:' + (ret.ret[i].money) / 100 + '元</p>';
							str += '<p class="status"><span>';
							if (ret.ret[i].hide == 1) {
								str += '已通过</span>';
							} else if (ret.ret[i].hide == 2) {
								str += '审核中</span>';
							} else {
								str += '未通过</span><span>余额退回</span>';
							}
							str += '</p>';
							str += '<p class="details_p">手续费: ' + (ret.ret[i].charge) / 100 + '元</p>';
							str += '<p class="details_p">直播消费金:' + (ret.ret[i].charge_live) / 100 + '元</p>';
							str += '<p class="details_p">礼物打赏金: ' + (ret.ret[i].charge_liwu) / 100 + '元</p>';
							str += '<p class="details_p">到账数额: ' + (ret.ret[i].get_price) / 100 + '元</p>';
							str += '<p class="time">提现申请日期:' + ret.ret[i].time + '</p>';
							if (ret.ret[i].updated_at == null || ret.ret[i].updated_at == "null") {} else {
								str += '<p class="time">提现处理日期:' + ret.ret[i].updated_at + '</p>';
							}
							if (ret.ret[i].content == null || ret.ret[i].content == "null") {
								str += '<p class="bz"></p>';
							} else {
									if(ret.ret[i].hide==1 || ret.ret[i].hide=="1"){
										console.log('不走这里的吗2？');
									}else{
										str += '<p class="bz">退回原因:' + ret.ret[i].content + '</p>';
									}
							}

							str += '</div>';
						}
						$(".details").html(str);
					} else {
						$(".details").html("<p style='color:#fff;text-align: center;margin-top:1rem;'>暂无数据！</p>");
					}
				} else {
					$(".details").html("<p style='color:#fff;text-align: center;margin-top:1rem;'>暂无数据！</p>");

				}

			})


		})

	}
</script>
